//
//  ZBPickerConfig.h
//  ZBTechniqueLibrary
//
//  Created by apple on 2018/9/30.
//  Copyright © 2018年 apple. All rights reserved.
//配置模型

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//配置多少个值
typedef NS_ENUM(NSInteger, ZBPickerValueType)
{
    ZBPickerValueType_None,  //无
    ZBPickerValueType_sex,  //性别
    ZBPickerValueType_yyyymmdd,  //年月日
    ZBPickerValueType_hhmmss,  //时分秒
    ZBPickerValueType_city,  //城市
};

@interface ZBPickerConfig : NSObject


/**
 默认配置
 */
+ (ZBPickerConfig *)defaultPickerConfig;

//设置行高
@property (nonatomic, assign) CGFloat rowHeight;
//头部高度
@property (nonatomic, assign) CGFloat headerHeight;
//选择器高度
@property (nonatomic, assign) CGFloat pickerViewHeight;

//取消配置
@property (nonatomic, strong) NSString *cancleTitle;
@property (nonatomic, strong) UIFont   *cancleFont;
@property (nonatomic, strong) UIColor  *cancleColor;

//确定配置
@property (nonatomic, strong) NSString *ensureTitle;
@property (nonatomic, strong) UIFont   *ensureFont;
@property (nonatomic, strong) UIColor  *ensureColor;

//标题文字配置
@property (nonatomic, strong) NSString *textTitle;
@property (nonatomic, strong) UIFont   *textFont;
@property (nonatomic, strong) UIColor  *textColor;
//标题否显示
@property (nonatomic, assign) BOOL titleHidden;

//底部风格线颜色
@property (nonatomic, strong) UIColor *headerLineBackgroundColor;
//底部风格线是否显示
@property (nonatomic, assign) BOOL headerBottomLineHidden;
//头部背景颜色
@property (nonatomic, strong) UIColor *headerBackgroundColor;

//日期格式
@property (nonatomic, strong) NSString *dateFormat;
//时间格式
@property (nonatomic, strong) NSString *timeFormat;
@property (nonatomic, strong) NSDate *minDate;
@property (nonatomic, strong) NSDate *maxDate;

@end



//地址模型
@interface ZBAddressModel: NSObject

@property (nonatomic, strong) NSString *areaId;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSArray<ZBAddressModel *>*list;

+ (instancetype)modelWithDict:(NSDictionary *)dict;
- (instancetype)initWithDict:(NSDictionary *)dict;
@end
